import {storepost,storepost2} from '@/apis/ajax.js'

export function getprovider() {
   return storepost('/storehouse/provider/list');
}

export function getproviderdata(data){
   return storepost('/storehouse/provider/list',data);
}

export function saveprovider(data){
   return storepost2('/storehouse/provider/save',data);
}

export function updateprovidebyid(data){
   return storepost2('/storehouse/provider/update',data);
}

export function deleteprovidebyid(data){
   return storepost2('/storehouse/provider/delete',data);
}



export function getstorehouse() {
   return storepost('/storehouse/storehouse/list');
}

export function getstorehousedata(data){
   return storepost('/storehouse/storehouse/list',data);
}

export function savestorehouse(data){
   return storepost2('/storehouse/storehouse/save',data);
}

export function updatestorehousebyid(data){
   return storepost2('/storehouse/storehouse/update',data);
}

export function deletestorehousebyid(data){
   return storepost2('/storehouse/storehouse/delete',data);
}


export function getrepository() {
   return storepost('/storehouse/repository/list');
}

export function getrepositorydata(data){
   return storepost('/storehouse/repository/list',data);
}

export function saverepository(data){
   return storepost2('/storehouse/repository/save',data);
}

export function updaterepositorybyid(data){
   return storepost2('/storehouse/repository/update',data);
}

export function deleterepositorybyid(data){
   return storepost2('/storehouse/repository/delete',data);
}

export function getwater() {
   return storepost('/storehouse/water/list');
}

export function getwaterdata(data){
   return storepost('/storehouse/water/list',data);
}

export function savewater(data){
   return storepost2('/storehouse/water/save',data);
}

export function updatewaterbyid(data){
   return storepost2('/storehouse/water/update',data);
}

export function deletewaterbyid(data){
   return storepost2('/storehouse/water/delete',data);
}

export function addwater(data){
   return storepost2('/storehouse/water/add',data);
}